#include "employee_factory.h"

std::unique_ptr<employee_base> EmployeeFactory::create_employee(const std::string& name, const std::string& employee_ID, const std::string& department_ID, const std::string& position) {
    if (position == "1") {
        return std::make_unique<boss>(name, employee_ID, department_ID);
    } else if (position == "2") {
        return std::make_unique<manager>(name, employee_ID, department_ID);
    } else if(position == "3") {
        return std::make_unique<employee>(name, employee_ID, department_ID);
    }
	return nullptr;
}

